<template>
  <div class="header">
    <div class="top">
      <div class="inner">
      <div class="middle">
        <img src="https://www.mljhotels.com/_nuxt/img/logo.fddad6c.png" width="132.42px" height="42.5px">
      </div>
    </div>
    </div>
    <div class="bottom"></div>
  </div>
</template>

<script setup>
</script>

<style lang="scss" scoped>
  .header{
    // flex: 1;
    // 该属性用于对背景区域进行滤镜处理
    backdrop-filter: blur(20px);
    opacity: 1;
    background: linear-gradient(1turn, transparent, rgba(0, 0, 0, 0.25));
    transition: background-color 1s, opacity 2s;
    display: block;
    width: 100%;
    height: 120px;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
    .top{
      display: block;
      position: fixed;
      width: 100%;
      height: 80px;
      z-index: 10;
      backdrop-filter: blur(20px);
      background: linear-gradient(1turn, transparent, rgba(0, 0, 0, 0.25));
      transition: background-color 1s, opacity 2s;
      background-color: transparent;
      .inner{
      color: #fff;
      display: flex;
      height: 80px;
      justify-content: center;
      max-width: 1004px;
      position: absolute;
      text-align: center;
      left: 50%;
      transform: translateX(-50%);
      .middle{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16vw;
        padding: 10px 0;
        img{
          height: auto;
          width: 60%;
        }
      }
    }
    }
    .bottom{
      display: block;
      height: 40px;
      position: absolute;
      top: 80px;
      width: 100%;
      z-index: 10;
      backdrop-filter: blur(20px);
      background: linear-gradient(1turn, transparent, rgba(0, 0, 0, 0.25));
      transition: background-color 1s, opacity 2s;
      background-color: transparent;
    }
  }
</style>